using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using static TangLiveRecorder.Data;

namespace TangLiveRecorder.Controls
{
    public partial class AddLiveControl : UserControl
    {
        public string NickName;
        public string Description;
        public string Url;


        public AddLiveControl()
        {
            InitializeComponent();
            InitializeEvents();
        }

        private void InitializeEvents()
        {
            // 文本框事件绑定
            txtNickName.TextChanged += (s, e) => NickName = txtNickName.Text;
            txtDescription.TextChanged += (s, e) => Description = txtDescription.Text;
            txtUrl.TextChanged += (s, e) => Url = txtUrl.Text;

        }       
    }
}
